<template>
	<view class="city">
		<!-- 3.页面添加组件 -->
		<tab></tab>
		<first-nav></first-nav>
		<city-content :tcity="tcity"></city-content>
		
	</view>
</template>

<script>
	// 1.引入组件
	import tab from '../../components/tab.vue'
	import firstNav from '../../components/first-nav.vue'
	import cityContent from '../../components/cityContent.vue'
	export default {
		// 2.对引入的组件进行声明
		components:{
			tab,
			firstNav,
			cityContent
		},
		data() {
			return {
				tcity:"北京"
			}
		},
		methods: {
			
		},
		onShow() {
			uni.getStorage({
				key:'city',
				success: (res) => {
					console.log(res.data)
					this.tcity=res.data
				}
			})
		}
	}
</script>

<style>
	.city{
		width: 100%;
		height: 100%;
		background: #000000;
	}

</style>
